//
//  Bounds.h
//  CompGraf2
//
//  Created by Juan Niosi on 02/09/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
#import "Engine.h"
#import "Vector3.h"

@class Entity;

@interface Bounds : NSObject
{
    GLfloat xMin;
    GLfloat xMax;
    GLfloat yMin;
    GLfloat yMax;
    GLfloat zMin;
    GLfloat zMax;
}
@property (nonatomic) GLfloat xMin, xMax, yMin, yMax, zMin, zMax;

- (id)initWithEntity:(Entity *)entity;
- (id)initWithValues:(GLfloat)xMin:(GLfloat)xMax:(GLfloat)yMin:(GLfloat)yMax:(GLfloat)zMin:(GLfloat)zMax;

- (void)draw:(Engine *)engine;

- (GLfloat)getHeight;
- (GLfloat)getWidth;
- (GLfloat)getDepth;

- (NSString *)toString;

- (BOOL)pointInside:(Vector3 *)point;
@end
